<template>
  <div>
      用户名:<input type="text" v-model="from.username">
      密码:<input type="text" v-model="from.password">
      <van-button @click="login">登录</van-button>
      
  </div>
</template>

<script>
export default {
    data(){
        return{
            from:{},
        }
    },
    methods:{
        login(){
            this.axios.post('blogin',this.from).then(res=>{
                alert(res.data.mes)
            })
        }
    },
    mounted(){

    }
}
</script>

<style>

</style>